﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ExamSystem.Mdeol
{
    public class Tquestion
    {
        private int tqId;//否	序号，主键，自增

        public int TqId
        {
            get { return tqId; }
            set { tqId = value; }
        }
        private Tkecheng tkcId;//否	课程ID，引用tkecheng表tckid

        public Tkecheng TkcId
        {
            get { return tkcId; }
            set { tkcId = value; }
        }
        private string tqName;//否	试题题目

        public string TqName
        {
            get { return tqName; }
            set { tqName = value; }
        }
        private string tqtype;//否	试题类型（1-单选 2-多选）

        public string Tqtype
        {
            get { return tqtype; }
            set { tqtype = value; }
        }

       
        private float tqScore;//否	分值

        public float TqScore
        {
            get { return tqScore; }
            set { tqScore = value; }
        }
        private string tqA;//否	选项A

        public string TqA
        {
            get { return tqA; }
            set { tqA = value; }
        }
        private string tqB;//否	选项B

        public string TqB
        {
            get { return tqB; }
            set { tqB = value; }
        }
        private string tqC;//否	选项C

        public string TqC
        {
            get { return tqC; }
            set { tqC = value; }
        }
        private string tqD;//否	选项D

        public string TqD
        {
            get { return tqD; }
            set { tqD = value; }
        }
        private string tqAnswer;//否	答案

        public string TqAnswer
        {
            get { return tqAnswer; }
            set { tqAnswer = value; }
        }
        private string tsanswer;

        public string Tsanswer
        {
            get { return tsanswer; }
            set { tsanswer = value; }
        }
        public Tquestion()
        {

        }

        public Tquestion(int tqId, Tkecheng tkcId, string tqName, string tqtype, float tqScore, string tqA, string tqB, string tqC, string tqD,string tqanswer)
        {
            this.tqId = tqId;
            this.tkcId = tkcId;
            this.tqName = tqName;
            this.tqtype = tqtype;
            this.tqScore = tqScore;
            this.tqA = tqA;
            this.tqB = tqB;
            this.tqC = tqC;
            this.tqD = tqD;
            this.tqAnswer = tqanswer;
        }
        public Tquestion(int tqId, Tkecheng tkcId, string tqName, string tqtype, float tqScore, string tqA, string tqB, string tqC, string tqD, string tqAnswer, string tsanswer)
        {
            this.tqId = tqId;
            this.tkcId=tkcId;
            this.tqName = tqName;
            this.tqtype = tqtype;
            this.tqScore = tqScore;
            this.tqA = tqA;
            this.tqB = tqB;
            this.tqC = tqC;
            this.tqD = tqD;
            this.tqAnswer = tqAnswer;
            this.tsanswer = tsanswer;
        }
    }
}